import  {API} from './api'




// 首页   轮播图     租房小组  资讯news  接口封装 


export let    reqSwiper=(data={})=>API.get ('/home/swiper',{data})

// export let    getSwiper=(url)=>API.get (url)

export  let   reqGruops=(data)=>  API.get('/home/groups',{data})


export  let   reqNews=(data)=>  API.get('/home/news',{data})


export  let reqLogin=(data)=>API.post('/user/login',data)



//   获取热门城市 

export  let  reqHotCity=(data={})=>API.get('/area/hot',{data})


// 获取城市列表  
export let    reqCityList=(data)=>API.get('/area/city',{data})


//  get  delete  一样 
//  post   update/put/patch   一样